﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace SharedData
{
    /// <summary>
    /// Information about a user.
    /// </summary>
    public class UserInfo
    {
        /// <summary>
        /// The different login states.
        /// </summary>
        public enum LoginState
        {
            /// <summary>
            /// Success, the user is logged in.
            /// </summary>
            Success,
            /// <summary>
            /// There was an error.
            /// </summary>
            Error,
            /// <summary>
            /// The password/username was incorrect.
            /// </summary>
            BadPassword
        }
        
        /// <summary>
        /// ErrorMessage
        /// </summary>
        public string ErrorMessage { get; set; }
        /// <summary>
        /// State
        /// </summary>
        public LoginState State { get; set; }
        /// <summary>
        /// Key
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// Student ID
        /// </summary>
        public string StudentID { get; set; }
    }
}